package com.example.demo.service.impl;

import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;

import javax.xml.ws.ServiceMode;

/***
 * 用户
 * <p>
 *@author zhangshuai
 *@date 2021-04-01-11-01
 *@Version 1.0
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private PasswordEncoder passwordEncoder;

    @Override
    public String selectPasswdByEmail(String username) {
        return passwordEncoder.encode("123456");
    }

    @Override
    public String selectPasswdByPhone(String username) {
        return passwordEncoder.encode("123456");
    }
}
